package com.ruoyi.merchant.service.impl;

import com.ruoyi.merchant.domain.CityInfo;
import com.ruoyi.merchant.domain.DistrictInfo;
import com.ruoyi.merchant.mapper.CityInfoMapper;
import com.ruoyi.merchant.mapper.DistrictInfoMapper;
import com.ruoyi.merchant.service.CityInfoService;
import com.ruoyi.merchant.service.DistrictInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DistrictInfoServiceImpl implements DistrictInfoService {

    @Autowired
    private DistrictInfoMapper districtInfoMapper;

    @Override
    public List<DistrictInfo> list(Integer cityId) {
        return districtInfoMapper.selectAllDistrictsByCityId(cityId);
    }
}
